public class singintance2 {
    //饿汉模式
    private static singintance2 instance = new singintance2();
    private singintance2(){}
    public static singintance2 getInstance(){
        return instance;
    }
}
